import {
  isDev,
  isTest,
  isPrd
} from './env';
/** 
 * 根据环境控制域名显示
*/
let origin;  //后台接口域名
let upLoadOrigin; //上传图片域名

if (isDev) {
  origin = 'http://sce-test.pingan.com.cn/rpa/api/';
  upLoadOrigin = 'http://stg-iobs-upload.pingan.com.cn/upload/rts-portal-dmz-stg-pri/';
  // origin = 'http://10.118.127.17:8080/rpa/api/'; //  林鑫
  // origin = 'http://10.118.146.78:8080/rpa/api/';   // 谭红娟
} else if(isTest){
  origin = 'http://sce-test.pingan.com.cn/rpa/api/';
  upLoadOrigin = 'http://stg-iobs-upload.pingan.com.cn/upload/rts-portal-dmz-stg-pri/';
} else if(isPrd){
  origin = 'https://sce.pingan.com.cn/rpa/api/';
  upLoadOrigin = 'https://iobs-upload.pingan.com.cn/upload/rts-portal-dmz-prd/';
}

export {
  upLoadOrigin,
  origin
}